﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CompanyInfo.ascx.cs" Inherits="PayrollHR.Administration.Modules.CompanyInfo" %>
<%@ Register Src="SimpleTextBox.ascx" TagName="SimpleTextBox" TagPrefix="uc6" %>
<%@ Register Src="EmailTextBox.ascx" TagName="EmailTextBox" TagPrefix="uc5" %>
<%@ Register Src="DecimalTextBox.ascx" TagName="DecimalTextBox" TagPrefix="uc3" %>
<%@ Register Src="DatePicker.ascx" TagName="DatePicker" TagPrefix="uc2" %>
<%@ Register Src="ToolTipLabelControl.ascx" TagName="ToolTipLabelControl" TagPrefix="uc1" %>

<%@ Register Src="EmailTextBoxNoRequired.ascx" TagName="EmailTextBoxNoRequired" TagPrefix="uc4" %>
<script>
    function demkytu(id, count, max) {
        var field = document.getElementById(id);
        var span = document.getElementById(count);
        if (field.value.length > max)
            field.value = field.value.substring(0, max);
        else
            thaydoikytuspan(max - field.value.length, span);
        //  count.value = max - field.value.length;
    }
    function thaydoikytuspan(value, field) {
        var text = document.createTextNode(value);
        field.firstChild.nodeValue = value;

    }
</script>
<table class="adminContent">

    <tr>
        <td class="adminTitle">
            <uc1:ToolTipLabelControl runat="server" ID="lblCustName" Text="<% $PayrollResources:Admin.CompanyInfo.ComName.Text %>"
                ToolTip="<% $PayrollResources:Admin.CompanyInfo.ComName.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData" style="width:700px;">
            <uc6:SimpleTextBox ID="txtComName" Width="600px" CssClass="adminInput" runat="server"   />
        </td>
        
    </tr>
    <tr>
        <td class="adminTitle">
            <uc1:ToolTipLabelControl ID="lblCustDateOfBirth" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.ComAddress.Text %>"
                ToolTip="<% $PayrollResources:Admin.CompanyInfo.ComAddress.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
           
            <asp:TextBox ID="txtAdress" Width="600px" runat="server" CssClass="adminInput" onkeypress="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtAdress', 'diachi', '128');" onKeyUp="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtAdress', 'diachi','128');"   ></asp:TextBox>
            <span class="label label-important" id="diachi">128</span>
        </td>
  
       
    </tr>
  

    <tr>
        <td class="adminTitle">
            <uc1:ToolTipLabelControl ID="lblCustAddres" runat="server" Text="<% $PayrollResources:Admin.ComPanyInfo.ComTaxCode.Text %>"
                ToolTip="<% $PayrollResources:Admin.companyInfo.ComTaxCode.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
            <asp:TextBox ID="txtTaxcode" CssClass="adminInput"  runat="server" Width="600px" onkeypress="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtTaxcode', 'tax', '32');" onKeyUp="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtTaxcode', 'tax','32');"  ></asp:TextBox>
            <span class="label label-important" id="tax">32</span>
        </td>
      
        
    </tr>
      <tr>
            <td class="adminTitle">
            <uc1:ToolTipLabelControl ID="lblCustEmail" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.ComEmail.Text %>"
                ToolTip="<% $PayrollResources:Admin.CompanyInfo.comEmail.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
            <asp:TextBox ID="txtComEmail" CssClass="adminInput" runat="server" Width="600px" onkeypress="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtComEmail', 'email', '32');" onKeyUp="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtComEmail', 'email','32');"   ></asp:TextBox>
             <span class="label label-important" id="email">32</span>
        </td>

    </tr>
     <tr>
            <td class="adminTitle">
            <uc1:ToolTipLabelControl ID="ToolTipLabelControl1" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.EmailSender.Text %>"
                ToolTip="<% $PayrollResources:Admin.CompanyInfo.EmailSender.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
            <asp:TextBox ID="txtEmailSender" CssClass="adminInput" runat="server" Width="600px" onkeypress="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtEmailSender', 'Span2', '64');" onKeyUp="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtEmailSender', 'Span2','64');"   ></asp:TextBox>
             <span class="label label-important" id="Span2">64</span>
        </td>

    </tr>
    <tr>
          <td class="adminTitle">
            <uc1:ToolTipLabelControl ID="lblCustMobile" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.ComRecive.Text %>"
                ToolTip="<% $PayrollResources:Admin.CompanyInfo.ComRecive.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
            <asp:TextBox ID="txtRecive" runat="server" CssClass="adminInput"  Width="600px" onkeypress="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtRecive', 'Span1', '32');" onKeyUp="demkytu('cph1_CompanyAdd1_CustomerTabs_pnlCustomerInfo_ctrlCompanyInfo_txtRecive', 'Span1','32');" ></asp:TextBox>
            <span class="label label-important" id="Span1">32</span>
        </td>
    </tr>
    <tr>
      
            <td class="adminTitle">
            <uc1:ToolTipLabelControl ID="ToolTipLabelControl2" runat="server" Text="<% $PayrollResources:Admin.CompanyInfo.pass.Text %>"
                ToolTip="<% $PayrollResources:Admin.CompanyInfo.pass.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        
    </tr>

       
   
   
   
   
   
   
   
</table>



